class ex_5_7_1{
	public void sub1(){
		System.out.println("-- no argument --");
		System.out.println("welcome to JAVA!");
		System.out.println("JAVA is very fun! \n");
		
	}
	public void sub2(int a, int b){
		System.out.println("-- argument & no return  --");
		//int c;
		System.out.println(a + " + " + b + " = " + (a+b));
		
	}
	public float sub3(int a, int b){
		System.out.println("-- argument & return  --");
		//int c;
		System.out.println(a + " + " + b + " = " + (a+b));
		return a+b;
		
	}
}
class ex_5_7{
	public static void main(String[] args){
		int x,y;
		float w,z;
		
		System.out.println("---- no method result ----");
		System.out.println("welcome to JAVA!");
		System.out.println("JAVA is very fun! \n");
		System.out.println("\n\n");
		
		ex_5_7_1 test = new ex_5_7_1();
		System.out.println("---- method result ----");
		test.sub1();
		
		
		x=30;
		y=60;
		test.sub2(x,y);
		w=test.sub3(x,y);
		z=w/3;
		System.out.println("sub3(x,y) = " + w + ", z = " + z);
		
	}
	
}